FROM java:8

LABEL maintainer="xinghua<764237865@qq.com>"

WORKDIR /opt/autumn-log-service/

ADD ./src/autumn-log/autumn-log-service/target/lib /opt/autumn-log-service/lib
ADD ./src/autumn-log/autumn-log-service/target/resources /opt/autumn-log-service/resources
ADD ./src/autumn-log/autumn-log-service/target/autumn-log-service.jar /opt/autumn-log-service/autumn-log-service.jar

RUN cp -rf /opt/autumn-log-service/resources/docker/* /opt/autumn-log-service/resources/ && rm -rf /opt/autumn-log-service/resources/docker/

EXPOSE 20883

ENTRYPOINT [ "java","-jar","autumn-log-service.jar" ]